package com.larsgard.gedviewer.shared.entities;

import java.io.Serializable;

public class Person implements Serializable {

    protected static final long serialVersionUID = 8876186875291810423L;
    protected String idno;
    protected String sex;
    protected String givenName;
    protected String familyName;
    protected String birthplace;
    protected String birthDate;
    protected String deathDate;
    protected String deathPlace;
    protected String motherIdno;
    protected String fatherIdno;
    protected String treeId;

    public void setIdno(String idno) {
	this.idno = idno;
    }

    public String getIdno() {
	return idno;
    }

    public void setFamilyName(String familyName) {
	this.familyName = familyName;
    }

    public String getFamilyName() {
	return familyName;
    }

    public void setGivenName(String givenName) {
	this.givenName = givenName;
    }

    public String getGivenName() {
	return givenName;
    }

    public void setSex(String sex) {
	this.sex = sex;
    }

    public String getSex() {
	return sex;
    }

    public String getBirthPlace() {
	return getBirthplace();
    }

    public String getBirthDate() {
	return birthDate;
    }

    public String getDeathDate() {
	return deathDate;
    }

    public String getDeathPlace() {
	return deathPlace;
    }

    public String getMotherIdno() {
	return motherIdno;
    }

    public String getFatherIdno() {
	return fatherIdno;
    }

    public void setBirthplace(String birthplace) {
	this.birthplace = birthplace;
    }

    public String getBirthplace() {
	return birthplace;
    }

    public void setBirthDate(String birthDate) {
	this.birthDate = birthDate;
    }

    public void setDeathDate(String deathDate) {
	this.deathDate = deathDate;
    }

    public void setDeathPlace(String deathPlace) {
	this.deathPlace = deathPlace;
    }

    public void setMotherIdno(String motherIdno) {
	this.motherIdno = motherIdno;
    }

    public void setFatherIdno(String fatherIdno) {
	this.fatherIdno = fatherIdno;
    }

    @Override
    public String toString() {
	return givenName + " " + familyName;
    }

    public void setTreeId(String treeId) {
	this.treeId = treeId;
    }

    public String getTreeId() {
	return treeId;
    }

}
